package cn.hallele.leinsteining.mc.sdk.auditcenter.api;

import cn.hallele.leinsteining.mc.infrastructure.metadata.io.Page;
import cn.hallele.leinsteining.mc.infrastructure.metadata.io.Response;
import cn.hallele.leinsteining.mc.sdk.auditcenter.dto.AuditLogDTO;
import cn.hallele.leinsteining.mc.sdk.auditcenter.dto.AuditLogQueryDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springdoc.core.annotations.ParameterObject;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 日志管理接口
 *
 * @author anle5
 * @since 2024/7/28 15:57
 */
@Tag(name = "01.日志管理接口")
public interface LogApi {
    /**
     * 分页查询审计日志
     *
     * @param condition 查询条件
     * @return 分页结果
     */
    @Operation(summary = "分页查询审计日志")
    @GetMapping("/auditlog")
    Response<Page<AuditLogDTO>> auditlog(@Valid @ParameterObject @SpringQueryMap Page<AuditLogQueryDTO> condition);
}
